import sys

def xget_camid(ra1,dec1,ra_mount,dec_mount):
    if ra1 >= ra_mount and dec1 >= dec_mount:
        camid = 'G02'
    elif ra1 >= ra_mount and dec1 < dec_mount:
        camid = 'G03'
    elif ra1 < ra_mount and dec1 >= dec_mount:
        camid = 'G01'
    elif ra1 < ra_mount and dec1 < dec_mount:
        camid = 'G04'

# G01,G02,G03 G04是相机编号
# ra1， dec1: 警报位置
#ra_mount, dec_mount： 文件头位置

if __name__== '__main__' :
    ra1 = sys.argv[1]
    dec1 = sys.argv[2]
    ra_mount = sys.argv[3]
    dec_mount = sys.argv[4]
    xget_camid(ra1,dec1,ra_mount,dec_mount)
